package com.ibeetl.cms.entity;

import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import com.ibeetl.admin.core.util.ValidateConfig;

import org.beetl.sql.core.TailBean;
import java.math.*;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;

import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;


/* 
* 课程
* gen by Spring Boot2 Admin 2019-01-10
*/
public class ExtCourse extends BaseEntity{

    //课程主键ID
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID	

    private Integer id ;
	
    //课程名字

    private String name ;
	
    //课程价格
    @Dict(type="data_price_type")

    private Integer price ;
	
    //购买课程价格

    private Integer buyprice ;
	
    //图片地址

    private String url ;
	
    //创建时间

    private Date createtime ;
	
    //创建人

    private String createuser ;
	
    //更新时间

    private Date updatetime ;
	
    //修改人

    private String updateuser ;

    //删除标识
    @JsonIgnore
    protected Integer delFlag = 0;

    public ExtCourse()
    {
    }

    /**课程主键ID
    *@return 
    */
    public Integer getId(){
	    return  id;
    }
    /**课程主键ID
    *@param  id
    */
    public void setId(Integer id){
        this.id = id;
    }

    /**课程名字
    *@return 
    */
    public String getName(){
	    return  name;
    }
    /**课程名字
    *@param  name
    */
    public void setName(String name){
        this.name = name;
    }

    /**课程价格
    *@return 
    */
    public Integer getPrice(){
	    return  price;
    }
    /**课程价格
    *@param  price
    */
    public void setPrice(Integer price){
        this.price = price;
    }

    /**购买课程价格
    *@return 
    */
    public Integer getBuyprice(){
	    return  buyprice;
    }
    /**购买课程价格
    *@param  buyprice
    */
    public void setBuyprice(Integer buyprice){
        this.buyprice = buyprice;
    }

    /**图片地址
    *@return 
    */
    public String getUrl(){
	    return  url;
    }
    /**图片地址
    *@param  url
    */
    public void setUrl(String url){
        this.url = url;
    }

    /**创建时间
    *@return 
    */
    public Date getCreatetime(){
	    return  createtime;
    }
    /**创建时间
    *@param  createtime
    */
    public void setCreatetime(Date createtime){
        this.createtime = createtime;
    }

    /**创建人
    *@return 
    */
    public String getCreateuser(){
	    return  createuser;
    }
    /**创建人
    *@param  createuser
    */
    public void setCreateuser(String createuser){
        this.createuser = createuser;
    }

    /**更新时间
    *@return 
    */
    public Date getUpdatetime(){
	    return  updatetime;
    }
    /**更新时间
    *@param  updatetime
    */
    public void setUpdatetime(Date updatetime){
        this.updatetime = updatetime;
    }

    /**修改人
    *@return 
    */
    public String getUpdateuser(){
	    return  updateuser;
    }
    /**修改人
    *@param  updateuser
    */
    public void setUpdateuser(String updateuser){
        this.updateuser = updateuser;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }
}
